package com.anjie.powerproject.strategy.pojo.device;

import com.anjie.powerproject.entity.DeviceType;

/**
 * 设备的基础类
 */
public class BaseDevice {
    // 设备id
    private Integer id;
    // 设备名称
    private String name;
    // type
    private Integer type;

    public BaseDevice() {

    }

    public BaseDevice(Integer id, String name) {
        this.id = id;
        this.name = name;
    }

    public BaseDevice(Integer id, String name, Integer type) {
        this.id = id;
        this.name = name;
        this.type = type;
    }

    public BaseDevice(Integer id, String name, DeviceType type) {
        this.id = id;
        this.name = name;
        this.type = type.getTypeId();
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }
}